package it.patterns.behavioral.mediator;

public class ConcreteMediator implements Mediator {
	private ConcreteColleagueA cA;
	private ConcreteColleagueB cB;

	public void createCollegues() {
		this.cA = new ConcreteColleagueA(this);
		this.cB = new ConcreteColleagueB(this);
	}

	@Override
	public void colleagueChanged(Colleague colleague) {
		System.out.println("A = " + cA.getData() + " B = " + cB.getData());
	}

	public ConcreteColleagueA getcA() {
		return cA;
	}

	public ConcreteColleagueB getcB() {
		return cB;
	}

}
